/*
 * NastaveniMenuButton.java
 *
 * Created on 19. �erven 2007, 18:31
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package cz.possoft.client.gui.panel.nastavenivrchnipanel.components;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;

import cz.possoft.client.gui.panel.NastaveniSpodniPanel;

/**
 *
 * @author mara
 */
public class NastaveniMenuButton extends JButton {
    
    //private NastaveniSpodniPanel nastaveniSpodniPanel;
    
    /** Creates a new instance of NastaveniMenuButton */
    public NastaveniMenuButton(String text) {
        super(text);
        //this.nastaveniSpodniPanel=nastaveniSpodniPanel;
        initContent();
    }
    
    class NastaveniButtonListener implements ActionListener {
        
        public void actionPerformed(ActionEvent ae) {
            NastaveniSpodniPanel.getNastaveniSpodniPanel().nastaveniStisknuto();
        }
    }
    
    public void initContent() {
        addActionListener(new NastaveniButtonListener());
    }
    
}
